home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / music_utilities / pt012.dms / pt012.adf / NoDelete / InstallLibrary next >
Text File  |  1992-05-14  |  1KB  |  35 lines

  1. .K ""
  2. echo "This script will install the arp.library, after first checking"
  3. echo "to see if you already have one installed.  If so, it will check the"
  4. echo "version number of the installed one, and give you the option of"
  5. echo "installing the one found here."
  6. echo ""
  7.  
  8. ask "Do you wish to continue with the installation? [y/n]"
  9. if WARN
  10.   if not EXISTS libs:arp.library
  11.     echo "No existing library, installing libs:arp.library..."
  12.     copy libs/arp.library libs:arp.library
  13.   else
  14.     echo "The version here is 39.1."
  15.     failat 20
  16.     echo "Your currently installed library version is:"
  17.     version arp.library 39 1
  18.     if WARN
  19.       ask "Do you wish to update libs:arp.library? [y/n]"
  20.       if WARN
  21.         echo "Updating libs:arp.library..."
  22.     protect libs:arp.library rwed
  23.         copy libs/arp.library libs:arp.library
  24.       else
  25.         echo "libs:arp.library unchanged."
  26.       endif
  27.     else
  28.       echo "The current installed version is up to date."
  29.     endif
  30.   endif
  31. endif
  32.  
  33. echo "All Done.  Click close gadget to get rid of window."
  34. endcli
  35.